package jicheng;
public class Dog extends Pet {
    private String type;
    public String getType() {
               return type;
           }
   public void setType(String type) {
               if(type.equals("1")) {
                        this.type = "Q仔";
                        return;
               }
               this.type = "Q妹";
            }
  public void print() {
                super.print();
               System.out.println("我的性别是："+getType());
             }

        }
